Skip to content

Conversation

laudeco
Copy link

@laudeco laudeco commented Jul 9, 2025

The problem

Yesterday we had the following issue with the OVH API

"PHP message: JsonException: Malformed UTF-8 characters, possibly incorrectly encoded in /var/www/html/application/vendor/ovh/ovh/src/Api.php:380

Note

Do not pay attention to the Line (we hotfixed the line on our environment)

Fix

To fix the issue we ignored the malformed UTF8 json by using the flags of json_decode https://www.php.net/manual/en/function.json-decode.php https://www.php.net/manual/en/json.constants.php#constant.json-invalid-utf8-ignore

issue

The issue #151 is fixed by the current MR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant